package com.hx.learn.log.logback.util;

import java.util.UUID;

/**
 * @author jxlgcmh
 * @date 2021-08-29 17:00
 * @description
 */
public class RequestFlow {


    public static String getRandomFlowNo() {
        int index = (int) (System.currentTimeMillis() % 13L);
        return UUID.randomUUID().toString().replaceAll("-", "").substring(index, index + 16);
    }

    public static void main(String[] args) {
        String randomFlowNo = getRandomFlowNo();
        System.out.println(randomFlowNo);
    }

}
